<template>
  <MrCustom bg-color="bg-gradual-blue " is-back>
    <template #backText>
      返回
    </template>
  </MrCustom>
  <view class="bg-white full-height">
    <view v-if="commentRootInfo">
      <CommentRootItem :comment-root-item="commentRootInfo"></CommentRootItem>
    </view>
  </view>
</template>

<script setup lang="ts">

import {onLoad} from "@dcloudio/uni-app";
import {ref} from "vue";
import CommentRootItem from "@/components/common/item/CommentRootItem.vue";
import MrCustom from "@/components/common/MrCustom.vue";

const commentRootInfo = ref()


onLoad((option) => {
  commentRootInfo.value = JSON.parse(decodeURIComponent(option.commentRootInfo))
  console.log(commentRootInfo.value)
})


</script>

<style scoped>

</style>